package com.hdaccp.cloud.service;

import com.hdaccp.cloud.bean.Users;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

@FeignClient(value = "T170CLOUD",fallbackFactory = UsersSCF.class)
public interface UsersServiceClient {
    @RequestMapping("/getUsers/{id}")
    public Users getUsers(@PathVariable("id") int id);

    @RequestMapping("/queryUsers")
    public List<Users> queyUsers();
}
